﻿<%@ Page Title="编辑产品信息" Language="C#" MasterPageFile="~/Masters/Account.Master" AutoEventWireup="true" ValidateRequest="false"
    CodeBehind="ProductEdit.aspx.cs" Inherits="LEARNREN.COM.WebSite.Administrator.ProductEdit" %>

<%@ Register Src="../UserDefinedControls/SelectCatalogueDropDownList.ascx" TagName="SelectCatalogueDropDownList"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../editor/ckeditor.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="commonContent">
        <fieldset class="changePassword">
            <legend>编辑产品信息</legend>
            <p>
                <asp:Label ID="ProductNameLabel" runat="server" AssociatedControlID="ProductNameTextBox">产品名称:</asp:Label>
                <asp:TextBox ID="ProductNameTextBox" CssClass="textEntry" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ProductNameRequired" runat="server" ControlToValidate="ProductNameTextBox"
                    CssClass="failureNotification" ErrorMessage="必须填写“产品名称”。" ToolTip="必须填写“产品名称”。"
                    ValidationGroup="ProductEditValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Label ID="ProductCodeLabel" runat="server" AssociatedControlID="ProductCodeTextBox">产品编号:</asp:Label>
                <asp:TextBox ID="ProductCodeTextBox" CssClass="textEntry" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ProductCodeRequiredFieldValidator" runat="server"
                    ControlToValidate="ProductCodeTextBox" CssClass="failureNotification" ErrorMessage="必须填写“产品编号”。"
                    ToolTip="必须填写“产品编号”。" ValidationGroup="ProductEditValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <p>
                        <label>
                            所属类别:</label>
                        <uc1:SelectCatalogueDropDownList ID="SelectCatalogueDropDownList1" runat="server" />
                    </p>
                </ContentTemplate>
            </asp:UpdatePanel>
            <p>
                <asp:Label ID="ProductImageLabel" runat="server" AssociatedControlID="ProductImageFileUpLoad">产品图片:</asp:Label>
                <asp:FileUpload ID="ProductImageFileUpLoad" CssClass="textEntry" runat="server">
                </asp:FileUpload><asp:Label ID="lblNotice" runat="server" Text="不修改请留空" ForeColor="Red"
                    Visible="false"></asp:Label>
            </p>
            <p>
                <asp:Label ID="IsRecommendLabel" runat="server" AssociatedControlID="IsRecommendCheckBox">设为推荐（推荐后在首页显示）:</asp:Label>
                <span class="CheckBoxSpan">
                    <asp:CheckBox ID="IsRecommendCheckBox" runat="server" /></span>
            </p>
            <P>
                <asp:Label ID="ProductContentLabel" runat="server" AssociatedControlID="ProductContentFCKeditor">商品详细介绍:</asp:Label>
                <asp:TextBox ID="ProductContentFCKeditor" runat="server" TextMode="MultiLine" CssClass="ckeditor" />
            </P>
            <p class="submitButton">
                <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="取消" />
                <asp:Button ID="btnSave" ValidationGroup="NewsEditValidationGroup" runat="server"
                    CommandName="Save" Text="保存" OnClick="btnSave_Click" />
            </p>
        </fieldset>
    </div>
</asp:Content>
